import request from '@/utils/request'

const API = '/user/hosp/hospital'
export default {
    getHosptailPage(searchObj) {//数据字典列表
        return request({
            url: `${API}/list`,
            method: 'GET',
            params: searchObj
        })
    },
    getByHosname(hosName) {//数据字典列表
        return request({
            url: `${API}/${hosName}`,
            method: 'GET',
        })
    },
    getHosptailDetail(hoscode) {//数据字典列表
        return request({
            url: `${API}/detail/${hoscode}`,
            method: 'GET',
        })
    },
    findDepartment(hoscode) {//数据字典列表
        return request({
            url: `/user/hosp/department/all/${hoscode}`,
            method: 'GET',
        })
    }
}